home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / cug187 / getdrv.c < prev    next >
Text File  |  1985-12-30  |  671b  |  21 lines

  1. /*@*****************************************************/
  2. /*@                                                    */
  3. /*@ getdrv - get the currently logged in drive id.     */
  4. /*@                                                    */
  5. /*@   Usage:     getdrv();                             */
  6. /*@       Returns an integer sized value with the      */
  7. /*@         numeric value of the drive.  E.G. C:       */
  8. /*@         is 0x03.                                   */
  9. /*@                                                    */
  10. /*@*****************************************************/
  11.  
  12. int getdrv()
  13. {
  14. #asm
  15.     MOV    AH,19h
  16.     INT    21h
  17.     MOV    AH,0
  18. #endasm
  19.     return;
  20. }
  21.